package com.dwin.h5.app.utils.http;

import com.dwin.h5.app.models.response.BackModel;
import com.dwin.h5.app.models.response.HomeTabRsp;

import okhttp3.RequestBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Headers;
import retrofit2.http.POST;

public interface UserManageService {

    // 获取tab列表
    @GET("client/tabs/getList")
    Call<HomeTabRsp> getTabList(@Header("language") String language , @Header("platform") String platform);

    // 配网成功，更新位置信息
    @Headers({"Content-Type: application/json", "Accept: application/json"})
    @POST("client/device/saveAddress")
    Call<BackModel> deviceSaveAddress(@Header("auth") String auth, @Header("platform") String platform, @Body RequestBody body);

}
